package com.ruoyi.cm.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import java.math.BigDecimal;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同管理对象 cm_bs_contract_info
 *
 * @author zyb
 * @date 2024-09-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("cm_bs_contract_info")
public class CmBsContractInfo extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 合同id
     */
    @TableId(value = "contract_id")
    private Long contractId;
    /**
     * 所属项目id
     */
    private Long projectId;
    /**
     * 所属标段id
     */
    private Long bdId;
    /**
     * 合同编号
     */
    private String contractNum;
    /**
     * 合同类型
     */
    private String contractType;
    /**
     * 合同名称
     */
    private String contractName;
    /**
     * 签订时间
     */
    private Date signDate;
    /**
     * 容量
     */
    private BigDecimal rongliang;
    /**
     * 单价
     */
    private BigDecimal danjia;

    private String scene1;
    private String scene2;
    private String scene3;
    /**
     * 容量
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal rongliang1;
    /**
     * 单价
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal danjia1;
    /**
     * 容量
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal rongliang2;
    /**
     * 单价
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal danjia2;
    /**
     * 容量
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal rongliang3;
    /**
     * 单价
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal danjia3;
    /**
     * 合同金额
     */
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal contractAmount;
    private BigDecimal chgContractAmount;

    /**
     * 甲方id(fk:dept表)
     */
    private Long partADeptId;
    /**
     * 甲方单位名称(冗余)
     */
    private String partAName;
    /**
     * 乙方id(fk:dept表)
     */
    private Long partBDeptId;
    /**
     * 乙方单位名称(冗余)
     */
    private String partBName;
    /**
     * 支付状态
     */
    private String payStatus;
    /**
     * 审批状态
     */
    private String approvalStatus;
    //变更审批状态
    private String chgApprovalStatus;
    /**
     * 开始时间
     */
    private Date beginDate;
    /**
     * 结束时间
     */
    private Date endDate;
    /**
     * 扣除奖励基金比例
     */
    private BigDecimal kcjljjbl;
    /**
     * 开工预付款比例
     */
    private BigDecimal kgyfkbl;
    /**
     * 合同备注
     */
    private String remark;
    /**
     * 是否删除
     */
    @TableLogic
    private String delFlag;

    private String procInsId; // 流程实例id
    private String chgProcInsId; // 变更流程实例id

}
